package com.the4man.framework.model.gen;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lenovo on 2017/12/11.
 */
public class EmployeeDeviceHistoryExampleBase {
    protected String orderByClause;
    protected boolean distinct;
    protected List<Criteria> oredCriteria = new ArrayList();
    protected int limitStart = -1;
    protected int rowsPerPage = -1;

    public EmployeeDeviceHistoryExampleBase() {
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return this.orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return this.distinct;
    }

    public List<EmployeeDeviceHistoryExampleBase.Criteria> getOredCriteria() {
        return this.oredCriteria;
    }

    public void or(EmployeeDeviceHistoryExampleBase.Criteria criteria) {
        this.oredCriteria.add(criteria);
    }

    public EmployeeDeviceHistoryExampleBase.Criteria or() {
        EmployeeDeviceHistoryExampleBase.Criteria criteria = this.createCriteriaInternal();
        this.oredCriteria.add(criteria);
        return criteria;
    }

    public EmployeeDeviceHistoryExampleBase.Criteria createCriteria() {
        EmployeeDeviceHistoryExampleBase.Criteria criteria = this.createCriteriaInternal();
        if(this.oredCriteria.size() == 0) {
            this.oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected EmployeeDeviceHistoryExampleBase.Criteria createCriteriaInternal() {
        EmployeeDeviceHistoryExampleBase.Criteria criteria = new EmployeeDeviceHistoryExampleBase.Criteria();
        return criteria;
    }

    public void clear() {
        this.oredCriteria.clear();
        this.orderByClause = null;
        this.distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart = limitStart;
    }

    public int getLimitStart() {
        return this.limitStart;
    }

    public void setRowsPerPage(int rowsPerPage) {
        this.rowsPerPage = rowsPerPage;
    }

    public int getRowsPerPage() {
        return this.rowsPerPage;
    }

    public static class Criteria extends EmployeeDeviceHistoryExampleBase.GeneratedCriteria {
        protected Criteria() {
        }
    }

    public static class Criterion {
        private String condition;
        private Object value;
        private Object secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String typeHandler;

        public String getCondition() {
            return this.condition;
        }

        public Object getValue() {
            return this.value;
        }

        public Object getSecondValue() {
            return this.secondValue;
        }

        public boolean isNoValue() {
            return this.noValue;
        }

        public boolean isSingleValue() {
            return this.singleValue;
        }

        public boolean isBetweenValue() {
            return this.betweenValue;
        }

        public boolean isListValue() {
            return this.listValue;
        }

        public String getTypeHandler() {
            return this.typeHandler;
        }

        protected Criterion(String condition) {
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if(value instanceof List) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }

        }

        protected Criterion(String condition, Object value) {
            this(condition, value, (String)null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, (String)null);
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<EmployeeDeviceHistoryExampleBase.Criterion> criteria = new ArrayList();

        protected GeneratedCriteria() {
        }

        public boolean isValid() {
            return this.criteria.size() > 0;
        }

        public List<EmployeeDeviceHistoryExampleBase.Criterion> getAllCriteria() {
            return this.criteria;
        }

        public List<EmployeeDeviceHistoryExampleBase.Criterion> getCriteria() {
            return this.criteria;
        }

        protected void addCriterion(String condition) {
            if(condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            } else {
                this.criteria.add(new EmployeeDeviceHistoryExampleBase.Criterion(condition));
            }
        }

        protected void addCriterion(String condition, Object value, String property) {
            if(value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            } else {
                this.criteria.add(new EmployeeDeviceHistoryExampleBase.Criterion(condition, value));
            }
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if(value1 != null && value2 != null) {
                this.criteria.add(new EmployeeDeviceHistoryExampleBase.Criterion(condition, value1, value2));
            } else {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdIsNull() {
            this.addCriterion("id is null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdIsNotNull() {
            this.addCriterion("id is not null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdEqualTo(String value) {
            this.addCriterion("id =", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdNotEqualTo(String value) {
            this.addCriterion("id <>", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdGreaterThan(String value) {
            this.addCriterion("id >", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("id >=", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdLessThan(String value) {
            this.addCriterion("id <", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdLessThanOrEqualTo(String value) {
            this.addCriterion("id <=", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdLike(String value) {
            this.addCriterion("id like", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdNotLike(String value) {
            this.addCriterion("id not like", value, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdIn(List<String> values) {
            this.addCriterion("id in", values, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdNotIn(List<String> values) {
            this.addCriterion("id not in", values, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdBetween(String value1, String value2) {
            this.addCriterion("id between", value1, value2, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andIdNotBetween(String value1, String value2) {
            this.addCriterion("id not between", value1, value2, "id");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdIsNull() {
            this.addCriterion("emp_id is null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdIsNotNull() {
            this.addCriterion("emp_id is not null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdEqualTo(String value) {
            this.addCriterion("emp_id =", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdNotEqualTo(String value) {
            this.addCriterion("emp_id <>", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdGreaterThan(String value) {
            this.addCriterion("emp_id >", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("emp_id >=", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdLessThan(String value) {
            this.addCriterion("emp_id <", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdLessThanOrEqualTo(String value) {
            this.addCriterion("emp_id <=", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdLike(String value) {
            this.addCriterion("emp_id like", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdNotLike(String value) {
            this.addCriterion("emp_id not like", value, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdIn(List<String> values) {
            this.addCriterion("emp_id in", values, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdNotIn(List<String> values) {
            this.addCriterion("emp_id not in", values, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdBetween(String value1, String value2) {
            this.addCriterion("emp_id between", value1, value2, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andEmpIdNotBetween(String value1, String value2) {
            this.addCriterion("emp_id not between", value1, value2, "empId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdIsNull() {
            this.addCriterion("dev_id is null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdIsNotNull() {
            this.addCriterion("dev_id is not null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdEqualTo(String value) {
            this.addCriterion("dev_id =", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdNotEqualTo(String value) {
            this.addCriterion("dev_id <>", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdGreaterThan(String value) {
            this.addCriterion("dev_id >", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("dev_id >=", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdLessThan(String value) {
            this.addCriterion("dev_id <", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdLessThanOrEqualTo(String value) {
            this.addCriterion("dev_id <=", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdLike(String value) {
            this.addCriterion("dev_id like", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdNotLike(String value) {
            this.addCriterion("dev_id not like", value, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdIn(List<String> values) {
            this.addCriterion("dev_id in", values, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdNotIn(List<String> values) {
            this.addCriterion("dev_id not in", values, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdBetween(String value1, String value2) {
            this.addCriterion("dev_id between", value1, value2, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andDevIdNotBetween(String value1, String value2) {
            this.addCriterion("dev_id not between", value1, value2, "devId");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeIsNull() {
            this.addCriterion("record_time is null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeIsNotNull() {
            this.addCriterion("record_time is not null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeEqualTo(String value) {
            this.addCriterion("record_time =", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeNotEqualTo(String value) {
            this.addCriterion("record_time <>", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeGreaterThan(String value) {
            this.addCriterion("record_time >", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeGreaterThanOrEqualTo(String value) {
            this.addCriterion("record_time >=", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeLessThan(String value) {
            this.addCriterion("record_time <", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeLessThanOrEqualTo(String value) {
            this.addCriterion("record_time <=", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeLike(String value) {
            this.addCriterion("record_time like", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeNotLike(String value) {
            this.addCriterion("record_time not like", value, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeIn(List<String> values) {
            this.addCriterion("record_time in", values, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeNotIn(List<String> values) {
            this.addCriterion("record_time not in", values, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeBetween(String value1, String value2) {
            this.addCriterion("record_time between", value1, value2, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andRecordTimeNotBetween(String value1, String value2) {
            this.addCriterion("record_time not between", value1, value2, "recordTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeIsNull() {
            this.addCriterion("logoff_time is null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeIsNotNull() {
            this.addCriterion("logoff_time is not null");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeEqualTo(String value) {
            this.addCriterion("logoff_time =", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeNotEqualTo(String value) {
            this.addCriterion("logoff_time <>", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeGreaterThan(String value) {
            this.addCriterion("logoff_time >", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeGreaterThanOrEqualTo(String value) {
            this.addCriterion("logoff_time >=", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeLessThan(String value) {
            this.addCriterion("logoff_time <", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeLessThanOrEqualTo(String value) {
            this.addCriterion("logoff_time <=", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeLike(String value) {
            this.addCriterion("logoff_time like", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeNotLike(String value) {
            this.addCriterion("logoff_time not like", value, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeIn(List<String> values) {
            this.addCriterion("logoff_time in", values, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeNotIn(List<String> values) {
            this.addCriterion("logoff_time not in", values, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeBetween(String value1, String value2) {
            this.addCriterion("logoff_time between", value1, value2, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }

        public EmployeeDeviceHistoryExampleBase.Criteria andLogoffTimeNotBetween(String value1, String value2) {
            this.addCriterion("logoff_time not between", value1, value2, "logoffTime");
            return (EmployeeDeviceHistoryExampleBase.Criteria)this;
        }
    }
}
